
import request from "@/utils/request";
// 获取全部老师用户
export  function getConsultant() {
  return request({
    url: 'system/teacher/teacherAllList',
    method: 'get',
  })
}
// 测评名称  输入直接搜索
export  function getEvaluationTitle(params) {
  return request({
    url: '/evaluation/management/list',
    method: 'get',
    params
  })
}
// 测评新增
export  function getEvaluationAdd(data) {
  return request({
    url: '/evaluation/management/add',
    method: 'post',
    data
  })
}
//删除测评
export function getDeleteQ(ids) {
  return request({
    url: '/evaluation/management/del/'+ids,
    method: 'delete',
  })
}
// 编辑更新测评
export  function getUpdateEvaluation() {
  return request({
    url: '/evaluation/management/editreturn/'+1,
    method: 'get',
  })
}
// 编辑心理测评提交
export  function getEvaluationsubmit(data) {
  return request({
    url: '/evaluation/management/edit',
    method: 'put',
    data
  })
}
// 新增题目
export  function getTopicAdd(data) {
  return request({
    url: '/evaluation/management/title/add',
    method: 'post',
    data
  })
}
// 题目名称(搜索)页面数据渲染
export  function getTopicName(query) {
  return request({
    url: '/evaluation/management/title/details',
    method: 'get',
    params:query
  })
}
// 编辑题目名称
export  function getEdmitTopic(id) {
  return request({
    url: '/evaluation/management/title/editreturn/'+id,
    method: 'get',
  })
}
// 提交编辑题目
export  function getEdmitTopicSubmit(data) {
  return request({
    url: '/evaluation/management/title/edit',
    method: 'put',
    data
  })
}
//删除题目
export function getDeleteTopic(ids) {
  return request({
    url: '/evaluation/management/title/del/'+ids,
    method: 'delete',
  })
}

export function psoImport(){
  return request({
    url: '/evaluation/management/title/import',
    method: 'post',
  })
}
